package replica;

public class AdminPlayerStatusThread implements Runnable {

	private AdminClient adminClient;

	private String adminName;

	private String adminPassword;

	private String adminIPAddress;

	private String result;
	
	public AdminPlayerStatusThread(AdminClient adminClient, String adminName,
			String adminPassword, String adminIPAddress) {
		this.adminClient = adminClient;
		this.adminName = adminName;
		this.adminPassword = adminPassword;
		this.adminIPAddress = adminIPAddress;
	}

	@Override
	public void run() {	
		result = adminClient.getPlayerStatus(adminName, adminPassword,
					adminIPAddress);
	}
	
	public String getResult(){
		return result;
	}
}
